/**  
 * @Copyright: 2017. All rights reserved.
 * @Version: v1.0   
 */
package com.guoguo.entity;

import java.io.Serializable;

import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 
 */
@Document(collection = "shortUrl")
public class ShortUrl implements Serializable {

	/**
	 * serialVersionUID:1L
	 */
	private static final long serialVersionUID = 1L;

	private String id; // 主键

	private String oldUrl; // 原始地址

	private String newUrl; // 新的短地址

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the oldUrl
	 */
	public String getOldUrl() {
		return oldUrl;
	}

	/**
	 * @param oldUrl the oldUrl to set
	 */
	public void setOldUrl(String oldUrl) {
		this.oldUrl = oldUrl;
	}

	/**
	 * @return the newUrl
	 */
	public String getNewUrl() {
		return newUrl;
	}

	/**
	 * @param newUrl the newUrl to set
	 */
	public void setNewUrl(String newUrl) {
		this.newUrl = newUrl;
	}
    
       
	
}
